﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewSale.aspx.cs" Inherits="SaleInfo_NewSale" %>

<!DOCTYPE html> 
<html> 
	<head runat="server"> 
        <meta charset="utf-8">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
	    <title>延安联通数据中心</title> 
        <link href="../Content/jquery.mobile-1.2.0.min.css" rel="stylesheet" type="text/css" />
        <script src="../Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
        <script src="../Scripts/jquery.mobile-1.2.0.min.js" type="text/javascript"></script>
        <script src="../Scripts/jquery.validate.min.js" type="text/javascript"></script>
        <link href="../Content/Default.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            $.mobile.ajaxEnabled = false;
            $(function () {
                $("#form1").validate({
                    rules: {
                        serviceId: "required"
                    },
                    messages: {
                        serviceId: "请输入用户号码"
                    }
                });
            });
        </script>
    </head> 
<body>     
    <!-- start page -->
    <div data-role="page">

	<!-- start header -->
	<div data-role="header" data-theme="c" data-position="inline" data-backbtn="false">
        <a href="../desktop.aspx" data-icon="home">桌面</a>
		<h1>UDC</h1>
        <a href="../default.aspx" data-icon="forward">退出</a>
	</div>
	<!-- end header -->

	<!-- start content -->
	<div data-role="content">	
    <form id="form1" runat="server" action="NewSale.aspx" method="post">
        <ul data-role="listview" data-inset="true">
            <asp:Literal runat="server" ID="msg"></asp:Literal>
            <asp:Literal runat="server" ID="sid" Visible="false"></asp:Literal>
            <li data-role="fieldcontain">
	        	<label for="serviceId">号码:</label>
                <asp:TextBox runat="server" ID="serviceId"></asp:TextBox>
			</li>
            <!--to do sale date input-->
            <li data-role="fieldcontain">
	        	<label for="IsContract">是否合约:</label>
                <asp:DropDownList runat="server" id="IsContract" data-role="slider">
                    <asp:ListItem Value="False">否</asp:ListItem>
                    <asp:ListItem Value="True" Selected="True">是</asp:ListItem>
                </asp:DropDownList>
			</li>
            <li data-role="fieldcontain">
	        	<label for="IsNew">是否新用户:</label>
                <asp:DropDownList runat="server" id="IsNew" data-role="slider">
                    <asp:ListItem Value="False">否</asp:ListItem>
                    <asp:ListItem Value="True" Selected="True">是</asp:ListItem>
                </asp:DropDownList>
			</li>
            <li data-role="fieldcontain">
				 <fieldset data-role="controlgroup">
			    	<legend>发展人:</legend>
                     <asp:RadioButtonList runat="server" ID="DevList" RepeatLayout="Flow" RepeatDirection="Horizontal">
                     </asp:RadioButtonList>
			    </fieldset>
			</li>
            <li data-role="fieldcontain">
	        	<label for="SaleDesc">备注:</label>
			    <textarea cols="40" rows="8" name="SaleDesc" id="SaleDesc" runat="server"></textarea>
			</li>
            <li class="ui-body ui-body-b">
				<fieldset class="ui-grid-a">
						<div class="ui-block-a"><button type="reset" data-theme="c" id="reset" runat="server">重置</button>
                            <asp:Button runat="server" Text="保存" ID="save" data-theme="c" Visible="false" 
                                onclick="save_Click"/>
                        </div>
						<div class="ui-block-b">
                            <asp:Button runat="server" Text="提交" ID="submit" data-theme="c"
                                onclick="submit_Click"/>
                            <asp:Button runat="server" Text="删除" ID="delete" data-theme="c" Visible="false" 
                                onclick="delete_Click" />
                        </div>
			    </fieldset>
			</li>
        </ul>
    </form>
	</div>
	<!-- end content -->

	<!-- start footer -->
	<div data-role="footer" data-theme="c" class="ui-bar">
        <a href="#" id="returnLink" data-transition="flip" data-icon="back" 
        runat="server">返回列表</a>
        <asp:Literal runat="server" Visible="false" ID="isAdd"></asp:Literal>
        <asp:Literal runat="server" Visible="false" ID="did"></asp:Literal>
	</div>
	<!-- end footer -->

	
    </div>
    <!-- end page -->
    
</body>
</html>
